package com.kandinfo.survey.weixin.mongo;

import java.io.Serializable;
import java.util.Date;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Entity(value = "WxConfigure", noClassnameStored = false)
@Document(collection = "WxConfigure")
public class WxConfigure implements Serializable {

	private static final long serialVersionUID = -6441351051320994023L;

	@Id
	private String id; // appId
	
	
	private String appId;// appid
	private String appSecret;
	private String url;

	private String accessToken;
	private int tokenTimeout;
	private Long tokenUpdateTime;
	
	private String jsapiTicket;
	private int ticketTimeout;
	private Long ticketUpdateTime;
	
	private Date updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		this.appId = id;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
		this.id = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public int getTokenTimeout() {
		return tokenTimeout;
	}

	public void setTokenTimeout(int tokenTimeout) {
		this.tokenTimeout = tokenTimeout;
	}

	public String getJsapiTicket() {
		return jsapiTicket;
	}

	public void setJsapiTicket(String jsapiTicket) {
		this.jsapiTicket = jsapiTicket;
	}

	public int getTicketTimeout() {
		return ticketTimeout;
	}

	public void setTicketTimeout(int ticketTimeout) {
		this.ticketTimeout = ticketTimeout;
	}

	public Long getTokenUpdateTime() {
		return tokenUpdateTime;
	}

	public void setTokenUpdateTime(Long tokenUpdateTime) {
		this.tokenUpdateTime = tokenUpdateTime;
	}

	public Long getTicketUpdateTime() {
		return ticketUpdateTime;
	}

	public void setTicketUpdateTime(Long ticketUpdateTime) {
		this.ticketUpdateTime = ticketUpdateTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
